package com.weharvest.edu.dao.mapper;

import com.weharvest.edu.entity.BackstageRole;
import com.weharvest.edu.utlis.page.SimplePage;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Map;

public interface BaseDaoMapper {
    /**
     * 关联查询+分页+排序+模糊
     * @param
     * @return
     */
    <ModelType>List<ModelType> findByAssociationTable(
            @Param("page") SimplePage page,
            @Param("likeField") Map<String,Object> likeField,
            @Param("orderByField") String orderByField,
            @Param("orderBy") String orderBy,
            @Param("params") Map<String, Object> params
    );

    /**
     * 带参数查询+实体类
     * @param
     * @return
     */
    <ModelType>List<ModelType>findByMp(ModelType modelType,@Param("params") Map<String,Object>params);


    /**
     * 带参数查询
     * @param
     * @return
     */
    <ModelType>List<ModelType>findByParams(@Param("params") Map<String,Object>params);




}